import { fromJS } from 'immutable'
import * as constant from './constant'
const defaultState = fromJS({
    autherInfo: {},
    contentInfo: []
})
export default ((state = defaultState, action) => {
  switch (action.type){
      case constant.GET_DETAIL_DATA :
       return state.merge({
        autherInfo: fromJS(action.autherInfo),
        contentInfo: fromJS(action.contentInfo)
       })
    
    default:
      return state;
  }
})